package org.rcloud.io.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.rcloud.io.Utils.EndorsementVo;
import org.rcloud.io.Utils.PageVo;
import org.rcloud.io.Utils.ResultVo;
import org.rcloud.io.model.Endorsement;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2019/2/15.
 */
public interface EndorsementService {
    ResultVo save(Endorsement endorsement);

    boolean executeCodecs(String ffmpegPath, String absolutePath, String codcFilePath, String mediaPicPath);

    PageVo<Endorsement> findEndorsement();

    ResultVo findEndorsementByNum(String eid);

    ResultVo updateArtid(String nameTitle,String shouming);

    ResultVo findEndorsementById(int id);

    ResultVo updateById(Endorsement endorsement);

    PageInfo<Endorsement> selectByOther(int pageNum, int pageSize, Map map);

    PageVo<Endorsement> findEndorsementByDQ();

    PageVo<Endorsement> findEndorsementByWS();

    PageVo<Endorsement> findEndorsementByXD();

    PageVo<Endorsement> findEndorsementByXK();

    PageVo<Endorsement> findEndorsementByEtype(String etype);

    PageVo<Endorsement> findEndorsementByName(String name);

    PageVo<Endorsement> findEndorsementByValue(String params);

    ResultVo selectByendorsementid(String params);

    PageInfo<Endorsement> selectByOthers(int pageNum, int pageSize, Map map);

    PageInfo<EndorsementVo> findByCondition(int pageNum, int pageSize, Endorsement endorsement);

    ResultVo randomShow();

}
